<div class="container-fluid" style="padding: 20px 10px 0px 10px">

    <div class="row-fluid">

        <div class="well">

            <ul class="nav nav-tabs">

                <li class="active"><b>资料编辑</b></li>

            </ul>

            <div id="myTabContent" class="tab-content">

                <div class="tab-pane active in" id="home">

                    <form id="formid" action="/hospital/add_user" method="post">
                        <input type="hidden" name="id" value="<?=$userData['id']?>">
                        <input type="hidden" name="submit" value="1">
                        <p><label style="display:inline">用户姓名 : </label>

                            <input type="text" name="user_name" value="<?=$userData['user_name']?>" class=""></p>
                        <p><label style="display:inline">手机号 : </label>

                            <input type="text" name="mobile" value="<?=$userData['mobile']?>" class=""></p>
                        <p><label style="display:inline">年龄 : </label>

                            <input type="text" name="age" value="<?=$userData['age']?>" class=""></p>
                        <p><label style="display:inline">用户类型 : </label>

                            <select name="user_type">
                                <?php foreach($user_type as $k=>$val){?>
                                <option value="<?=$k?>"><?=$val?></option>
                                <?php }?>
                            </select></p>

                        <p><label style="display:inline; padding-left: 28px;">职称 : </label>

                            <input type="text" name="job" value="<?=$userData['job']?>"  class=""></p>
                        <p><label style="display:inline">所属科室 : </label>

                            <select name="depart_id">
                                <?php foreach($depart as $k=>$val){?>
                                <option value="<?=$val['id']?>"><?=$val['de_name']?></option>
                                <?php }?>
                            </select></p>

                        <p><label style="display:inline; padding-left: 28px;">状态 : </label>&nbsp;&nbsp;&nbsp;<label style="display:inline"><input type="radio" name="status" style="margin-top:1px" value="1" <?=$roleData['status'] == '1' ? 'checked="checked"' : ''?> /> 启用</label>

                            <label style="display:inline"><input type="radio" name="status" style="margin-top:1px" value="0" <?=$roleData['status'] == '1' ? '' : 'checked="checked"'?> /> 禁用</label>

                        </p>
                        <div class="btn-toolbar">
                            <div class="btn-group" style="margin:30px 0 10px 180px;">
                                <input type="submit" name="" value="保存" class="btn btn-primary">
                            </div>
                        </div>
                    </form>

                </div>

            </div>

        </div>

    </div>

    <script>

        $(function(){

            $('#btn-save').click(function(){
                $('#formid').submit();
            })

        })

    </script>